package com.lianwei.hospital.Service;

import com.lianwei.hospital.module.entity.BookingInfo;
import com.lianwei.hospital.module.entity.UserInfo;
import com.lianwei.hospital.module.vo.BookingVO;
import com.lianwei.hospital.module.vo.UserVO;
import com.lianwei.hospital.utils.PageUtil;

import java.util.List;

public interface BookingInfoService {
    BookingInfo selectByPrimaryKey(String uId) throws Exception;
    boolean insert(BookingInfo bookingInfo) throws Exception;
    List<BookingInfo> selectAll() throws Exception;
//    boolean deleteByPrimaryKey(String uId);
    boolean updateByPrimaryKey(BookingInfo bookingInfo) throws Exception;
    /**
     * 按条件分页查询
     * @param query
     * @return
     * @throws Exception
     */
    PageUtil<BookingInfo> findPage(BookingVO query) throws Exception;
}
